package cn.dgut.jy.soro.repository;

import cn.dgut.jy.soro.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

@Repository
public interface UserRepository extends JpaRepository<User, Integer>,
        JpaSpecificationExecutor<User> {
    User findByMobileAndPassword(String mobile, String password);
    User findByUsernameOrMobileOrEmail(String username, String mobile, String email);
    User findByMobileAndEmail(String mobile, String email);
}
